package com.yitong.profile.service;

import java.util.Map;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.yitong.base.domain.DwzResult;
import com.yitong.base.domain.Page;
import com.yitong.profile.dao.api.CompanyDao;
import com.yitong.profile.domain.Company;

@Service
public class CompanyService {

	@Inject
	private CompanyDao companyDao;


	public Page<?> listCompanyWithPage(Map<String, Object> param, int pageNum, int pageSize) throws Exception{
		Page<?> page = companyDao.listCompanyWithPage(param, pageNum, pageSize);
		return page;
	}

	
	public DwzResult delete(Map<String, Object> param) throws Exception {
		return companyDao.delete(param);
	}

	public DwzResult insert(Map<String, Object> param) throws Exception {
		return companyDao.insert(param);
	}

	public Company showCompanyById(Map<String, Object> param) throws Exception {
		return companyDao.showCompanyById(param);
	}

	public DwzResult update(Map<String, Object> param) throws Exception {
		return companyDao.update(param);
	}
	

}
